#!/bin/env bash

echo "Start RUN!"

cd /data/gosrc/src/go-papers
git pull

echo "pull master code"
go build -o /data/web/go-papers-run/go_papers main.go

cd /data/web/go-papers-run
echo "restart  service "
./run.sh restart
echo "service RUN!"

echo "crontab Start Restart!"
./run_cron.sh restart
echo "crontab RUN!"
exit 0